import { BaseModel } from '@/common/base/base.model';
import { Column, Entity } from 'typeorm';

@Entity('USER_LOGIN_LOG', {
  synchronize: false,
}) // 用户登录记录（也保存当时的token，用于禁用踢下线）
export class UserLoginLogModel extends BaseModel {
  @Column({
    comment: '用户uuid',
    type: 'uuid',
  })
  userUuid: string;

  @Column({
    comment: 'token',
    type: 'varchar',
    length: 50,
  })
  token: string;
}
